//
//  ARTUserManager.h
//  YunDaHome-iOS
//
//  Created by 刘权 on 2019/11/1.
//  Copyright © 2019 YunDa. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ARTUserInfoModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface ARTUserManager : NSObject

/// 当前用户的基础信息（持久化存储）
#define ARTUSER [ARTUserManager defaultManager].currentUser
@property (strong, nonatomic)  ARTUserInfoModel *currentUser;

/// 登录回调
@property (copy, nonatomic)  dispatch_block_t loginSuccessBlock;

/// 退出回调
@property (copy, nonatomic)  dispatch_block_t existSuccessBlock;

/// 单利
+ (ARTUserManager *)defaultManager;

/// 登录
- (void)loginByUser:(ARTUserInfoModel *)user;

/// 退出
- (void)exist;

@end

NS_ASSUME_NONNULL_END
